import React, { Component } from 'react';
import { connect } from 'react-redux';
import Util from "../../utils/Util";
import * as DataName from "../../action/DataNameConfig";
import { TableOrderList } from "./OrderTable";
import { Card } from "antd";
class Main extends Component {
    componentWillMount(){
        Util.setMenuOpenKey(this.props,"order");
    }
    render() {
        let { CommonSystem } = this.props;
        return (
            <div className={"page-common"} style={{width: '100%'}}>
                <Card title={"订单管理"} bordered={false} loading={CommonSystem[DataName.BASE_CARD_LOADING] || false}>
                    <TableOrderList />
                </Card>
            </div>
        )
    }
}

export default connect(state=>({
    User: state.User,
    CommonSystem: state.CommonSystem,
    BaseData: state.BaseData
}))(Main);
